package com.mylibraryapplication.http;

import java.io.Serializable;

/**
 * json返回结果基本数据
 */
public class BaseModel<T> implements Serializable {
    public String code;
    public String message;
    public T result;
//    public HttpResponseCode responseCode;


    public boolean success(){
        return code.equals("0");
    }

    @Override
    public String toString() {
        return "BaseModel{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", result=" + result +
                '}';
    }
}
